package com.easylinkin.linkappapi.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.quality.entity.Problem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 问题库 Mapper 接口
 * </p>
 *
 * @author kanyuanfeng
 * @since 2022-08-01
 */
public interface ProblemMapper extends BaseMapper<Problem> {

  IPage<Problem> queryListByPage(Page page, Problem problem);

    void updateByTypeNameChange(@Param("typeFullName") String typeFullName, @Param("len") int length, @Param("newNameBefore") String newNameBefore);

  void deleteByTypeFullName(@Param("fullName") String fullName);

    void updateOfSync(@Param("needUpdateIds") List<Integer> needUpdateIds);
}
